package com.jet.member.remote.cashier;

import com.jet.core.result.ResultJson;
import com.jet.member.remote.cashier.vo.MemberCashierLastOrderVo;
import com.jet.member.remote.cashier.vo.MemberCashierSummaryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dcl
 * @since 2025/2/21 15:07
 */
@FeignClient(contextId = "memberCashierRemote", value = "mammon-merchant", fallback = MemberCashierRemoteFallback.class)
public interface MemberCashierRemoteFeign {

    @GetMapping("/inner/cashier/order/last-order")
    ResultJson<MemberCashierLastOrderVo> getMemberCashierLastOrder(@RequestParam long merchantNo,
                                                                   @RequestParam String memberId);

    @GetMapping("/inner/cashier/order/order-summary")
    ResultJson<MemberCashierSummaryVo> getMemberCashierSummary(@RequestParam long merchantNo,
                                                               @RequestParam String memberId);
}
